# coding:utf-8
from tkinter import *
def callback():
    var.set('吹吧你，我才不信呢~')

root=Tk()

frame1=Frame(root)
frame2=Frame(root)

var=StringVar()
var.set("你所加载的图片含有不健康内容，\n请满18周岁再点击")
text_label=Label(frame1,textvariable=var,
                 justify=LEFT)
text_label.pack(side=LEFT)

photo=PhotoImage(file="2.gif")
imgLabel=Label(root,image=photo)
imgLabel.pack(side=RIGHT)

theBotton=Button(frame2,text='我已满18周岁',command=callback)
theBotton.pack()
frame1.pack(padx=10,pady=10)
frame2.pack(padx=10,pady=10)
mainloop()